package com.tiansu.reborn.wanda.modules.executor.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tiansu.reborn.wanda.modules.executor.entity.SampleHourEntity;
import com.tiansu.reborn.wanda.modules.executor.entity.SampleValueEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface SampleHourDao extends BaseMapper<SampleHourEntity> {

    SampleHourEntity getTableLocation(@Param("deviceId") Integer deviceId,@Param("num") int num);

    List<SampleValueEntity> getSampleValue(@Param("tablename")String tablename, @Param("colunmname")String colunmname,@Param("operationtime") Date operationtime);

    SampleValueEntity getLatelyValue(@Param("tablename")String tablename, @Param("colunmname")String colunmname,@Param("operationtime") Date operationtime);
}
